aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/(profile)/+layout.server.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-26 07:51:47 -0800
committerAdam Soltys <[email protected]>2025-01-26 07:51:47 -0800
commit38bcc3e6d10f203213eb5bc014f35e3736acf7a1 (patch)
tree0d77bbe6e88de6119eb72dd416c237524dad1dd4 /src/routes/(app)/[username]/(profile)/+layout.server.ts
parent2d896f2fce81b51d9d8c117140ae5d14361f5814 (diff)
downloadcoinos-ui-38bcc3e6d10f203213eb5bc014f35e3736acf7a1.tar.gz
coinos-ui-38bcc3e6d10f203213eb5bc014f35e3736acf7a1.zip
hide nostr stuff
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
-rw-r--r--src/routes/(app)/[username]/(profile)/+layout.server.ts16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts
index 70e7ebdb..e2ab51b1 100644
--- a/src/routes/(app)/[username]/(profile)/+layout.server.ts
+++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts
@@ -7,12 +7,16 @@ export async function load({ depends, parent }) {
const rates = await getRates();
const { subject, user } = await parent();
- const { follows, followers } = await get(`/${subject.pubkey}/count`);
- let followList = new Promise((r) => r([]));
- if (user)
- followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch(
- () => [],
- );
+ // const { follows, followers } = await get(`/${subject.pubkey}/count`);
+ // let followList = new Promise((r) => r([]));
+ // if (user)
+ // followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch(
+ // () => [],
+ // );
+
+ const followList = new Promise((r) => r([]));
+ const follows = [];
+ const followers = [];
return { follows, followers, followList, rate: rates[subject.currency] };
}